home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 9
/
The PC-SIG Library on CD ROM - Ninth Edition.iso
/
101_200
/
DISK0163
/
DISK0163.ZIP
/
WC.DOC
< prev
next >
Wrap
Text File
|
1983-08-22
|
2KB
|
53 lines
WC (Word Count)
Command
--------------------------------------------------
Purpose: This filter reads text from the standard
input device, counting the number of
characters, words and lines and writes
the totals to the standard output device.
Format: WC [-[L][W][C]]
Type: Internal External
***
Remarks: The -L parameter specifies that the line
count should be printed.
The -W parameter specifies that the word
count should be printed.
The -C parameter specifies that the
character count should be printed.
Specifying no parameter has the same
effect as specifying all of the
parameters. i.e. WC -lwc
Examples: A>WC <wc.doc -wc
Will output the number of words and
characters in this file.Or,
A>DIR C: | WC -l
Will output the number of files on drive
C: plus 7.
Notes: 1. When counting characters, WC ignores
the CR (carriage return) and the LF
(line feed) characters, so the count
may not agree with the file size in
the directory.
2. WC regards a word as any string of
characters separated from the rest
of the text by an end of line, space
or tab character.
Written by Michael Hanson